/***
 * @author: cqz
 * @desc: 用户管理API
 * @date: 2021-11-15
 */

import $http from '../../utils/studioRequest'

const userAPI = {}

/***
 * 获取已审批数据元素
 * @param pid
 */
userAPI.refreshToken = () => {
  return $http({
    url: $http.adornUrl('/sys/user/refresh'),
    method: 'post'
  })
}

userAPI.getUserList = () => {
  return $http({
    url: $http.adornUrl('/sys/user/allList'),
    method: 'get',
    params: $http.adornParams({
      'userType': 1
    })
  })
}

export default userAPI
